package vn.sg.bean;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import javax.annotation.PostConstruct;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
  

@ManagedBean
@SessionScoped
public class MainCategoryBean implements Serializable {
	private static final long serialVersionUID = 1L;
	
	private List<String> categoryNames ;
	
	private String selectedName ;
	
	/**
	 * default constructor
	 */
	public MainCategoryBean() {
		
	}
	
	/**
	 * initialize categories after bean getting constructed
	 */
	@PostConstruct
	public void initCategories() {
		categoryNames = new ArrayList<String>() ;
		categoryNames.add("About Wii");
		categoryNames.add("Wii Blog");
		categoryNames.add("Jobs");
		categoryNames.add("Site Map");
		categoryNames.add("Ebay");
	}
	
	public List<String> getCategoryNames() {
		return categoryNames;
	}

	public void setCategoryNames(List<String> categoryNames) {
		this.categoryNames = categoryNames;
	}

	public String getSelectedName() {
		return selectedName;
	}

	public void setSelectedName(String selectedName) {
		this.selectedName = selectedName;
	}
}
